package com.demo.Picasso;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.squareup.picasso.Picasso;
import com.yihujiu.demo.R;

public class PicassoDemo extends Activity {

    ImageView mainLog;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mainLog = (ImageView) findViewById(R.id.mainLog);
        String url = "https://www.baidu.com/img/bd_logo1.png";
        Picasso.with(this).load(url).into(mainLog);
    }

    public void onClick(View view) {
    }
}
